package br.gov.ibama.client.componentes;

import br.gov.ibama.client.comum.Constantes;

import com.smartgwt.client.data.DataSource;
import com.smartgwt.client.widgets.form.fields.ComboBoxItem;

public class ComboboxCNPJ extends ComboBoxItem {
	public ComboboxCNPJ(String name, String title) {
		super(name, title);
		configuraCombo();
	}

	private void configuraCombo() {
		this.setOptionDataSource(DataSource.get(Constantes.DS_EMPRESA));
		this.setValueField("NUM_PESSOA");
		this.setDisplayField("CNPJ");
		this.setAddUnknownValues(false);
	}
}